package cn.gson.crmdemo.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the journal database table.
 * 
 */
@Entity
@NamedQuery(name="Journal.findAll", query="SELECT j FROM Journal j")
public class Journal implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="journal_id")
	private int journalId;
	
	@ManyToOne
	@JoinColumn(name="emp_id")
	private Emp empId;

	@Temporal(TemporalType.DATE)
	@Column(name="journal_date")
	private Date journalDate;

	@Lob
	@Column(name="journal_text")
	private String journalText;

	public Journal() {
	}

	public int getJournalId() {
		return this.journalId;
	}

	public void setJournalId(int journalId) {
		this.journalId = journalId;
	}

	public Emp getEmpId() {
		return this.empId;
	}

	public void setEmpId(Emp empId) {
		this.empId = empId;
	}

	public Date getJournalDate() {
		return this.journalDate;
	}

	public void setJournalDate(Date journalDate) {
		this.journalDate = journalDate;
	}

	public String getJournalText() {
		return this.journalText;
	}

	public void setJournalText(String journalText) {
		this.journalText = journalText;
	}

}